#ifndef __DBUTILS_HPP__
#define __DBUTILS_HPP__

#include <mysql++/mysql++.h>

extern std::string 
uint_to_str(const mysqlpp::sql_int_unsigned num);

extern mysqlpp::sql_varchar 
escape_str(const mysqlpp::sql_varchar& str);

extern mysqlpp::Connection* 
db_create_and_connect(const std::string& db,
		      const std::string& host,
		      const std::string& user,
		      const std::string& pass);

extern void 
db_disconnect_and_delete(mysqlpp::Connection** conn);


#endif 
